# -*- coding: utf-8 -*-
import os


class DevConfig(object):
    APP_NAME = "{{cookiecutter.project_name}}"
    APP_VERSION = "1.0.0"
    APP_DESC = ""
    SQLALCHEMY_DATABASE_URI = ""
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_POOL_RECYCLE = 50
    SQLALCHEMY_ECHO = True

    SERVICE_INFO = {
        "address": "127.0.0.1",
        "port": {{cookiecutter.http_port}}
    }
    HSRPC_AUTO_UNREGISTER = True


class GaConfig(DevConfig):
    SQLALCHEMY_ECHO = False
    SQLALCHEMY_DATABASE_URI = ""


Config = GaConfig if os.environ.get('ENV_CODE') == "GA" else DevConfig
